function myModel(options) {
    // console.log(options);//将实际参数的值传递过来
    // 创建遮罩层
    var mask = document.createElement("div");
    mask.setAttribute("class", "mask");
    document.body.appendChild(mask);//向body中添加内容
    if (options.mask) {
        mask.style.display = "block";
    }
    // mask.onclick = function(){
    //      document.body.removeChild(mask);
    // }

    // 创建主体内容
    var container = document.createElement("div");
    container.setAttribute("class", "container");
    document.body.appendChild(container);//向body中添加内容

    var content = document.createElement("div");
    content.className = "content";
    container.appendChild(content);
    content.style.display = "block";//将模态框显示

    // 创建标题
    var item = document.createElement("div");
    item.className = "item";
    var h3 = document.createElement("h3")
    h3.className = "h3";
    h3.innerHTML = options.title;
    content.appendChild(item);
    item.appendChild(h3);

    // 创建模态框内容
    var item1 = document.createElement("div");
    item1.className = "item1";
    item1.innerHTML = options.content_item1;
    content.appendChild(item1);

    // 创建确定按钮
    var item2 = document.createElement("div");
    item2.className = "item2";
    item2.innerHTML =options.content_item2;
    content.appendChild(item2);
    // 点击确定，蒙版取消
    var sure = document.getElementsByClassName("sure")[0];
    sure.onclick = function () {
        document.body.removeChild(mask);
        document.body.removeChild(container);
    }
    var one = document.getElementsByClassName("one")[0];
    one.onclick = function () {
        document.body.removeChild(mask);
        document.body.removeChild(container);
    }

}   
